#include "iostream"
using namespace std;

int main()
{
    for (char a = 'a'; a <= 'z'; a++)
    {
        cout << a;
    }
    cout << endl;
    for (char z = 'Z'; z >= 'A'; z--)
    {
        cout << z;
    }
    cout << endl;
}
